﻿<UserControl x:Class="Probel.Ldoc.Views.Controls.Correctors.ProfessionSpellingCorrectorView"
             
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:t="clr-namespace:Probel.Ldoc.Views.Properties"
             
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <DataTemplate x:Key="ProfessionTemplate">
            <Border BorderThickness="5" CornerRadius="8">
                <Border.Effect>
                    <DropShadowEffect Color="#FFB6B6B6"/>
                </Border.Effect>
                <Border.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFD3DCEF"/>
                        <GradientStop Color="#FFEAEFF7" Offset="0.896"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid Background="{x:Null}" Margin="0,0,0,5">
                    <TextBlock Text="{Binding Name}" 
                               HorizontalAlignment="Center" 
                               FontWeight="Bold" FontSize="13.333"/>
                </Grid>
            </Border>
        </DataTemplate>
        <DataTemplate x:Key="ProfessionDoubloon">

            <Border BorderThickness="5" CornerRadius="8">
                <Border.Effect>
                    <DropShadowEffect Color="#FFB6B6B6"/>
                </Border.Effect>
                <Border.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFD3DCEF"/>
                        <GradientStop Color="#FFEAEFF7" Offset="0.896"/>
                    </LinearGradientBrush>
                </Border.Background>
                <Grid Background="{x:Null}" Margin="0,0,0,5">
                    <TextBlock Text="{Binding Name}" 
                               HorizontalAlignment="Center" 
                               FontWeight="Bold" FontSize="13.333"/>
                </Grid>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="4*"/>
        </Grid.ColumnDefinitions>
        <ListView ItemsSource="{Binding ItemsToFix}"
                  SelectedItem="{Binding SelectedItem}"
                  ItemTemplate="{DynamicResource ProfessionTemplate}"
                  HorizontalContentAlignment="Stretch"/>
        <ListView Grid.Column="1"
                  ItemsSource="{Binding SubItems}"
                  SelectedItem="{Binding SelectedFix}"
                  ItemTemplate="{DynamicResource ProfessionDoubloon}"
                  HorizontalContentAlignment="Stretch"/>
    </Grid>
</UserControl>
